package com.codeplex.springsurv.dataaccess.mappers;

import java.sql.SQLException;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.codeplex.springsurv.*;

public interface UsersMapper {
	
	public User getUserByNickAndPass(@Param(value = "strNick") String pStrNick, @Param(value = "strPass") String pStrPass) throws SQLException;
	
	public User getUserByNick(@Param(value = "strNick") String pStrNick) throws SQLException;
	
	public void insertUser(@Param(value = "user") User pUser) throws SQLException;
	
	public List<User> getAllUsers();
	
	public User existsNick(@Param(value = "nick") String pNick) throws SQLException;

}
